package com.suray.attendance.service;


import java.util.List;
import java.util.Map;

/**
* @Description:  报工模块的业务接口层
 * 	查询("list.data.query.get"),
 * 	审核("data.approve"),
 * 	撤销审核("data.disapprove"),
 * 	作废("data.invalid"),
 * 	创建("data.create"),
 * 	删除("data.delete"),
 * 	读取("details.data.read.get",String requestProd);
* @Author: jly
* @Date: 2023/11/2
*/
public interface ErpService {

    /**
    * @Description: 新增相应的erp工单
    * @Param: [docType, jsonData]
    * @return: java.util.Map<java.lang.String,java.lang.Object>
    * @Author: jly
    * @Date: 2023/11/20
    */
    public Map<String,Object> add(String docType, String jsonData,String requestProd);

    /**
    * @Description: 根据工单单获取工单数据
    * @Param: [docType, docNo]
    * @Author: jly
    * @Date: 2023/11/13
     * @return
    */
    public Object read(String docType, String docNo,String requestProd);

    /**
     * @description: 查询信息
     * @author: jly
     * @date: 2023/11/14 16:05
     **/
    public List<Object> query(String docType,String requestProd);

    /**
     * @description: 根据条件查询信息
     * @author: jly
     * @date: 2023/11/14 16:05
     **/
    public List<Object> queryCondition(String docType, List<String[]> queryMaps, List<String[]> orderMaps,String requestProd);


    /**
     * @description:  审核单条数据
     * @author:  jly
     * @date: 2023/11/14 10:40
     * @return*/
    public Boolean approve(String docType, String docNo,String requestProd);


    /**
     * @description:  作废单条数据
     * @author:  jly
     * @date: 2023/11/14 10:40
     * @return*/
     public Boolean invalid(String docType, String docNo,String requestProd);

    /**
     * @description:  撤销审核单条数据
     * @author:  jly
     * @date: 2023/11/14 10:40
     * @return*/
    public Boolean disapprove(String docType, String docNo,String requestProd);


}
